home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / ROMDefs.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  5.7 KB  |  154 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ROMDefs.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ROMDefs;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __ROMDEFS__}
  27. {$SETC __ROMDEFS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ROMDefsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$PUSH}
  35. {$ALIGN MAC68K}
  36. {$LibExport+}
  37.  
  38. CONST
  39.     appleFormat                    = 1;                            {Format of Declaration Data (IEEE will assign real value)}
  40.     romRevision                    = 1;                            {Revision of Declaration Data Format}
  41.     testPattern                    = 1519594439;                    {FHeader long word test pattern}
  42.     sCodeRev                    = 2;                            {Revision of code (For sExec)}
  43.     sCPU68000                    = 1;                            {CPU type = 68000}
  44.     sCPU68020                    = 2;                            {CPU type = 68020}
  45.     sCPU68030                    = 3;                            {CPU type = 68030}
  46.     sCPU68040                    = 4;                            {CPU type = 68040}
  47.     sMacOS68000                    = 1;                            {Mac OS, CPU type = 68000}
  48.     sMacOS68020                    = 2;                            {Mac OS, CPU type = 68020}
  49.     sMacOS68030                    = 3;                            {Mac OS, CPU type = 68030}
  50.     sMacOS68040                    = 4;                            {Mac OS, CPU type = 68040}
  51.     board                        = 0;                            {Board sResource - Required on all boards}
  52.     displayVideoAppleTFB        = 16843009;                        {Video with Apple parameters for TFB card.}
  53.     displayVideoAppleGM            = 16843010;                        {Video with Apple parameters for GM card.}
  54.     networkEtherNetApple3Com    = 33620225;                        {Ethernet with apple parameters for 3-Comm card.}
  55.     testSimpleAppleAny            = -2147417856;                    {A simple test sResource.}
  56.     endOfList                    = 255;                            {End of list}
  57.     defaultTO                    = 100;                            {100 retries.}
  58.  
  59.     sRsrcType                    = 1;                            {Type of sResource}
  60.     sRsrcName                    = 2;                            {Name of sResource}
  61.     sRsrcIcon                    = 3;                            {Icon}
  62.     sRsrcDrvrDir                = 4;                            {Driver directory}
  63.     sRsrcLoadDir                = 5;                            {Load directory}
  64.     sRsrcBootRec                = 6;                            {sBoot record}
  65.     sRsrcFlags                    = 7;                            {sResource Flags}
  66.     sRsrcHWDevId                = 8;                            {Hardware Device Id}
  67.     minorBaseOS                    = 10;                            {Offset to base of sResource in minor space.}
  68.     minorLength                    = 11;                            {Length of sResource’s address space in standard slot space.}
  69.     majorBaseOS                    = 12;                            {Offset to base of sResource in Major space.}
  70.     majorLength                    = 13;                            {Length of sResource in super slot space.}
  71.     sRsrccicn                    = 15;                            {Color icon}
  72.     sRsrcicl8                    = 16;                            {8-bit (indexed) icon}
  73.     sRsrcicl4                    = 17;                            {4-bit (indexed) icon}
  74.     sDRVRDir                    = 16;                            {sDriver directory}
  75.     sGammaDir                    = 64;                            {sGamma directory}
  76.     sRsrcVidNames                = 65;                            {Video mode name directory}
  77.     sRsrcDock                    = 80;                            {spID for Docking Handlers}
  78.     sDiagRec                    = 85;                            {spID for board diagnostics}
  79.     sVidAuxParams                = 123;                            {more video info for Display Manager -- timing information}
  80.     sDebugger                    = 124;                            {DatLstEntry for debuggers indicating video anamolies}
  81.     sVidAttributes                = 125;                            {video attributes data field (optional,word)}
  82.     fLCDScreen                    = 0;                            { bit 0 - when set is LCD, else is CRT}
  83.     fBuiltInDisplay                = 1;                            {      1 - when set is built-in (in the box) display, else not}
  84.     fDefaultColor                = 2;                            {      2 - when set display prefers multi-bit color, else gray}
  85.     fActiveBlack                = 3;                            {      3 - when set black on display must be written, else display is naturally black}
  86.     fBuiltInDetach                = 4;                            {      4 - when set is built-in (in the box), but detaches}
  87.     sVidParmDir                    = 126;
  88.     sSuperDir                    = 254;
  89.  
  90. { =======================================================================    }
  91. { sResource types                                                            }
  92. { =======================================================================    }
  93.     catBoard                    = 1;                            {Category for board types.}
  94.     catTest                        = 2;                            {Category for test types -- not used much.}
  95.     catDisplay                    = 3;                            {Category for display (video) cards.}
  96.     catNetwork                    = 4;                            {Category for Networking cards.}
  97.     catCPU                        = $000A;
  98.     catProto                    = $0011;
  99.     catDock                        = $0020;
  100. {<Type>}
  101.     typeBoard                    = $0000;
  102.     typeApple                    = $0001;
  103.     typeVideo                    = $0001;
  104.     typeEtherNet                = $0001;
  105.     typeStation                    = $0001;
  106.     typeDesk                    = $0002;
  107.     typeDebugger                = $0100;
  108.     type68000                    = $0002;
  109.     type68020                    = $0003;
  110.     type68030                    = $0004;
  111.     type68040                    = $0005;
  112.     typeAppleII                    = $0015;
  113. {Driver Interface : <id.SW>}
  114.     drSwMacCPU                    = 0;
  115.     drSwAppleIIe                = $0001;
  116.     drSwApple                    = 1;                            {To ask for or define an Apple-compatible SW device.}
  117.     drSwMacsBug                    = $0104;
  118. {Driver Interface : <id.SW><id.HW>}
  119.     drHwTFB                        = 1;                            {HW ID for the TFB (original Mac II) video card.}
  120.     drHw3Com                    = 1;                            {HW ID for the Apple EtherTalk card.}
  121.     drHwBSC                        = 3;
  122.     drHwGemini                    = 1;
  123.     drHwDeskBar                    = 1;
  124.     drHwBootBug                    = $0100;
  125.     boardId                        = 32;                            {Board Id}
  126.     pRAMInitData                = 33;                            {sPRAM init data}
  127.     primaryInit                    = 34;                            {Primary init record}
  128.     timeOutConst                = 35;                            {Time out constant}
  129.     vendorInfo                    = 36;                            {Vendor information List. See Vendor List, below}
  130.     boardFlags                    = 37;                            {Board Flags}
  131.     secondaryInit                = 38;                            {Secondary init record/code}
  132.     vendorId                    = 1;                            {Vendor Id}
  133.     serialNum                    = 2;                            {Serial number}
  134.     revLevel                    = 3;                            {Revision level}
  135.     partNum                        = 4;                            {Part number}
  136.     date                        = 5;                            {Last revision date of the card}
  137.  
  138.     testByte                    = 32;                            {Test byte.}
  139.     testWord                    = 33;                            {0021}
  140.     testLong                    = 34;                            {Test Long.}
  141.     testString                    = 35;                            {Test String.}
  142.  
  143.  
  144. {$ALIGN RESET}
  145. {$POP}
  146.  
  147. {$SETC UsingIncludes := ROMDefsIncludes}
  148.  
  149. {$ENDC} {__ROMDEFS__}
  150.  
  151. {$IFC NOT UsingIncludes}
  152.  END.
  153. {$ENDC}
  154.